class Car():
    def __init__(self,manufcturer,model,year):
        """初始化操作，建立描述汽车的属性"""
        self.manufcturer = manufcturer
        self.model = model
        self.year = year
        self.odometer_reading=0
    
    def get_car_name(self):
        long_name = str(self.year) + ' ' + self.manufcturer + ' ' + self.model
        return long_name

    def read_licheng(self):
        print("当前已经行驶里程"+str(self.odometer_reading)+"千米!")

    def update_licheng(self,mileage):
        if mileage >= self.odometer_reading:
            self.odometer_reading = mileage
        else:
            print("这不是插电动力!")

    def increment_licheng(self,miles):
        self.odometer_reading += miles